/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.fd.domain.bo.DocumentRelationBO;
import com.xy.biz.fd.domain.query.DocumentRelationQuery;

/**
 *
 *
 * @author wcs
 * @date 2021-2-5
 */
public interface DocumentRelationManager {

	/**
	 * 保存
	 *
	 * @param documentRelationBO
	 */
	int saveDocumentRelation(DocumentRelationBO documentRelationBO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllDocumentRelation(Collection<DocumentRelationBO> collection);

	/**
	 * 更新
	 *
	 * @param documentRelationBO
	 */
	int updateDocumentRelation(DocumentRelationBO documentRelationBO);

	/**
	 * 批量更新
	 *
	 * @param documentRelationBOS
	 */
	int updateDocumentRelationS(Collection<DocumentRelationBO> documentRelationBOS);

	/**
	 * 删除
	 *
	 * @param documentRelationId
	 */
	int deleteDocumentRelation(Long documentRelationId);

	/**
	 * 查找一个
	 *
	 * @param documentRelationId
	 * @return
	 */
	DocumentRelationBO getDocumentRelation(Long documentRelationId);

	DocumentRelationBO getDocumentRelation(DocumentRelationBO documentRelationBO);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<DocumentRelationBO> listDocumentRelationById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentRelationBO> listDocumentRelation(DocumentRelationQuery query);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentRelationBO> listDocumentRelation(List<DocumentRelationBO> query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentRelation(DocumentRelationQuery query);

}
